package com.erytech.linktalk.web.client.service;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Browser side data model
 * 
 * @author ery.lee@gmail.com
 */
public class UserInfo implements IsSerializable {

	public static final int MALE = 1;

	public static final int FEMALE = 2;

	public static final String ALL = "ALL";
	
	int sex;
	
	String name;
	
	String image;
	
	String roomId;
	
	String description;
	
	public UserInfo() {}

	public UserInfo(String name, String alias, int sex) {
		this.name = name;
		this.description = alias;
		this.sex = sex;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		return "{name: " + name + ", description: " + description + ", sex: " + sex 
			+ ", roomId" + roomId + ", image: " + image + "}";
	}
}
